package com.ssy.lingxi.product.api.hystrix;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.product.api.feign.InvoicesControllerFeign;
import com.ssy.lingxi.product.api.model.request.warehouse.InvoicesAddFeignRequest;
import com.ssy.lingxi.product.api.model.request.warehouse.InvoicesDetailsListRequest;
import com.ssy.lingxi.product.api.model.response.warehouse.InvoicesDetailsResponse;
import org.springframework.stereotype.Component;

@Component
public class InvoicesControllerFeignFallback implements InvoicesControllerFeign {

    /**
     * 添加单据内部接口
     *
     * @param request 接口参数
     * @author wrc
     * @date 2020/9/12
     */
    @Override
    public Wrapper<InvoicesDetailsResponse> invoicesAddFeign(InvoicesAddFeignRequest request) {
        return  Wrapper.fail(ResponseCode.SERVICE_PRODUCT_ERROR);
    }

    /**
     * 单据审查
     *
     * @param request 接口参数
     * @author wrc
     * @date 2020/9/24
     */
    @Override
    public Wrapper<InvoicesDetailsResponse> invoicesReview(InvoicesDetailsListRequest request) {
        return  Wrapper.fail(ResponseCode.SERVICE_PRODUCT_ERROR);
    }
}
